﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MvcBlog.ViewModels.EntryListViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    MVC Blog
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Die 20 aktuellsten Einträge</h2>


     <% foreach (var item in Model.Entries) { %>
    
   <div>
	    <div class="entrySummary">
            <div class="entryHeadline">
                <%: Html.ActionLink(item.Subject, "../Entry/Details/" + item.Entry_ID)%> (<%: item.NumberOfComments %> <%: item.NumberOfCommentsLabel %>)
            </div>
            <div class="entryMeta">
                <%: item.User.Username %>, <%: item.CreateDate %>
	        </div>
	    </div>

   </div>
    
    <% } %>


</asp:Content>
